conradkleinespel
changed the title
The "Restore as another virtual machine" has a wrong JSON body example
Fix JSON body example in "Restore as another virtual machine" documentation
Mar 9, 2021
conradkleinespel
changed the title
Fix JSON body example in "Restore as another virtual machine" documentation
Fix JSON body example in "Restore as another virtual machine" REST API documentation
Mar 9, 2021
This is about the "Restore as another virtual machine" section only.
The JSON body example is invalid as it contains the request parameters in addition to the JSON body, it is currently:
{ "parameters": { "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "testVaultRG", "vaultName": "testVault", "fabricName": "Azure", "containerName": "IaasVMContainer;iaasvmcontainerv2;testRG;testVM", "protectedItemName": "VM;iaasvmcontainerv2;testRG;testVM", "recoveryPointId": "348916168024334", "api-version": "2019-05-13", "parameters": { "properties": { "objectType": "IaasVMRestoreRequest", "recoveryPointId": "348916168024334", "recoveryType": "AlternateLocation", "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/testVM", "targetVirtualMachineId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG/providers/Microsoft.Compute/virtualmachines/targetVM", "targetResourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG", "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Storage/storageAccounts/testingAccount", "virtualNetworkId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG/providers/Microsoft.Network/virtualNetworks/testNet", "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default", "region": "westus", "createNewCloudService": false, "originalStorageAccountOption": false, "encryptionDetails": { "encryptionEnabled": false } } } } }It should be:
{ "properties": { "objectType": "IaasVMRestoreRequest", "recoveryPointId": "348916168024334", "recoveryType": "AlternateLocation", "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/testVM", "targetVirtualMachineId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG/providers/Microsoft.Compute/virtualmachines/targetVM", "targetResourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG", "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Storage/storageAccounts/testingAccount", "virtualNetworkId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG/providers/Microsoft.Network/virtualNetworks/testNet", "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default", "region": "westus", "createNewCloudService": false, "originalStorageAccountOption": false, "encryptionDetails": { "encryptionEnabled": false } } }Document Details
The text was updated successfully, but these errors were encountered: